'''定义logs的URL模式'''

from django.urls import path, include, re_path
from . import views

urlpatterns = [
        # 主页
        path('index/', views.index, name='index'),
        path('topics/', views.topics, name='topics'),
        # 特定主题的详细页面
        re_path('topics/(P<topic_id>\d+)/', views.topic, name='topic'),
        # 用于添加新主页的网页
        path('new_topic/', views.new_topic, name='new_topic'),
]
app_name = 'logs'
